﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Happy.Query.Filters
{
    /// <summary>
    /// 筛选器访问者。
    /// </summary>
    public abstract class FilterVisitor : IFilterVisitor
    {
        /// <inheritdoc />
        public virtual void Visit(FilterGroup group)
        {
            foreach (var item in group.Filters)
            {
                item.Accept(this);
            }
        }

        /// <inheritdoc />
        public abstract void Visit(Filter filter);
    }
}
